DevJourney

Python/RegEx/Basics/String Stripping/strip()/2.py

text = '216Python is easy12621'
print(text.strip('12'))

# Output
#####################
# 6Python is easy126
View on GitHub